﻿using System.Collections.Generic;

namespace HamcoWcs.Models.ForeEndModels.BI
{
    /// <summary>
    /// 表格模型基类
    /// </summary>
    public class ChartModelBase
    {
        public ChartModelBase()
        {

        }

        public ChartModelBase(string title)
        {
            Title = title;
        }
        public string Title { get; set; }
        public List<string> Titles { get; set; } = new List<string>();
        public List<string> Values { get; set; } = new List<string>();
    }

    /// <summary>
    /// 柱状图模型
    /// </summary>
    public class HistogramModel : ChartModelBase
    {


    }

    /// <summary>
    /// 柱状图模型
    /// </summary>
    public class LineChartModel
    {
        public string Title { get; set; }

        public List<string> Legends { get; set; } = new List<string>();
        public List<string> Titles { get; set; } = new List<string>();
        public List<ChartDataItem> Series { get; set; } = new List<ChartDataItem>();
    }
    /// <summary>
    /// 饼状图模型
    /// </summary>
    public class PieChartModel
    {
        public string Title { get; set; }

        public List<PieChartItem> Series { get; set; } = new List<PieChartItem>();
    }




    public class ChartDataItem
    {
        public string Name { get; set; }
        public List<string> Values { get; set; } = new List<string>();
    }

    public class PieChartItem
    {
        public string Value { get; set; }
        public string Name { get; set; }
    }
}
